package com.fnzn.entranceGuard.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxf
 * @since 2018-07-09
 */
@TableName("call_log")
public class CallLog extends Model<CallLog> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 手机号
     */
    private String number;

    /**
     * 通话对象名字
     */
    private String name;

    /**
     * 呼入呼出（1呼入2呼出）
     */
    private String type;

    /**
     * 通话时间  秒
     */
    private String duration;

    /**
     * 日期
     */
    private Date date;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CallLog{" +
        ", id=" + id +
        ", number=" + number +
        ", name=" + name +
        ", type=" + type +
        ", duration=" + duration +
        ", date=" + date +
        "}";
    }
}
